package com.base.common.netBeanPackage;


import androidx.databinding.BaseObservable;

public class BaseResponse extends BaseObservable {


    public static boolean isSuccess(int code) {
        return code == 310 || code == 200;
    }

    private int code = -1;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}